
from ILI9431 import ILI9341
from machine import Pin, SPI

tft = Pin(4)
sdc = Pin(5,Pin.OUT)
spi = SPI(
    2,
    baudrate=40000000,
    miso=Pin(19),
    mosi=Pin(23),
    sck=Pin(18))

display = ILI9341(
    spi,
    cs=Pin(4),
    dc=Pin(15),
    rst=Pin(2),
    w=320,
    h=240,
    r=0)



display.erase()



